﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace NetwerkScanner
{

    public class Host : INotifyPropertyChanged
    {
        
        public event PropertyChangedEventHandler PropertyChanged;
        private void ChangeProperty(string s)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(s));
            }
        }
        public string IPAdres { get; set; }

        private string mac;
        public string MACAddress
        {
            get { return mac; }
            set
            {
                mac = value;
                ChangeProperty("MACAddress");
            }
        }

        private int ping;

        public int Ping
        {
            get { return ping; }
            set
            {
                ping = value;
                ChangeProperty("Ping");
            }
        }

        public string Name { get; set; }

        public Host()
        {
            MACAddress = "Onbekend";
            Name = "Naamloos";
            Ping = -1;
        }

    }

}
